/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.bus.entity;

import org.hibernate.validator.constraints.Length;
import com.thinkgem.jeesite.common.persistence.DataEntity;
import java.math.BigDecimal;
/**
 * 疫苗详细信息Entity
 * @author zhangxingliang
 * @version 2019-06-10
 */
public class VaccineInfo extends DataEntity<VaccineInfo> {
	
	private static final long serialVersionUID = 1L;
	private String standardId;		// 疫苗补助标准表bus_subsidy_standard id
	private String vaccineId;		// bus_vaccine id
	private String vaccineName;		// 疫苗名称
	private BigDecimal amountMl;		// 疫苗数量：毫升
	private BigDecimal amount;		// 疫苗数量：头份
	private Integer calcUnit;		// 换算单位(0:ml 1:头份)
	private BigDecimal ml;		// 疫苗单位 4ml/头份
	private BigDecimal cash;		// 补助金额
	private String status;		// 启用状态 0=不可用 1=可用
	private String sort;		// 排序
	private String entId;		//ent表id
	private String entHistoryId;		//ent历史表id

	//辅助字段
	private BigDecimal standardNum; // 补助金额

	public VaccineInfo() {
		super();
	}

	public VaccineInfo(String id){
		super(id);
	}

	@Length(min=0, max=18, message="疫苗补助标准表bus_subsidy_standard id长度必须介于 0 和 18 之间")
	public String getStandardId() {
		return standardId;
	}

	public void setStandardId(String standardId) {
		this.standardId = standardId;
	}
	
	@Length(min=0, max=18, message="bus_vaccine id长度必须介于 0 和 18 之间")
	public String getVaccineId() {
		return vaccineId;
	}

	public void setVaccineId(String vaccineId) {
		this.vaccineId = vaccineId;
	}
	
	@Length(min=0, max=50, message="疫苗名称长度必须介于 0 和 50 之间")
	public String getVaccineName() {
		return vaccineName;
	}

	public void setVaccineName(String vaccineName) {
		this.vaccineName = vaccineName;
	}
	
	@Length(min=0, max=10, message="疫苗数量：毫升长度必须介于 0 和 10 之间")
	public BigDecimal getAmountMl() {
		return amountMl;
	}

	public void setAmountMl(BigDecimal amountMl) {
		this.amountMl = amountMl;
	}
	
	@Length(min=0, max=10, message="疫苗数量：头份长度必须介于 0 和 10 之间")
	public BigDecimal getAmount() {
		return amount;
	}

	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}
	
	@Length(min=0, max=1, message="换算单位(0:ml 1:头份)长度必须介于 0 和 1 之间")
	public Integer getCalcUnit() {
		return calcUnit;
	}

	public void setCalcUnit(Integer calcUnit) {
		this.calcUnit = calcUnit;
	}
	
	@Length(min=0, max=10, message="疫苗单位 4ml/头份长度必须介于 0 和 10 之间")
	public BigDecimal getMl() {
		return ml;
	}

	public void setMl(BigDecimal ml) {
		this.ml = ml;
	}
	
	public BigDecimal getCash() {
		return cash;
	}

	public void setCash(BigDecimal cash) {
		this.cash = cash;
	}
	
	@Length(min=0, max=1, message="启用状态 0=不可用 1=可用长度必须介于 0 和 1 之间")
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}
	
	@Length(min=0, max=4, message="排序长度必须介于 0 和 4 之间")
	public String getSort() {
		return sort;
	}

	public void setSort(String sort) {
		this.sort = sort;
	}

	public String getEntId() {
		return entId;
	}

	public void setEntId(String entId) {
		this.entId = entId;
	}

	public String getEntHistoryId() {
		return entHistoryId;
	}

	public void setEntHistoryId(String entHistoryId) {
		this.entHistoryId = entHistoryId;
	}

	public BigDecimal getStandardNum() {
		return standardNum;
	}

	public void setStandardNum(BigDecimal standardNum) {
		this.standardNum = standardNum;
	}
}